Busters ghosts algebra algorithm