binary search and selection sort examples