implements test of binary search lab