add binary search to sorting module