pancake sorting