adding the code for sorting using binary based insertion sort and pancake sorting