changed binary search method

changed binary search method to average over 5 runs