Binary Search is done and tested with integer and double