Implementations of both binary search and trilateral search, in Java.