Insertion sorter and binary searcher