bully algorithm logic stub