Binary Search returns index instead of value

With regard to the issue #13 , the method now returns index instead of value.