Ruby Implementation of Binary Search and Merge Sort Algorithms