working on binary search
created isSorted function
created sample sort check for generic objects