Implemented binary search
Added javadoc