finished binary_search implementation
this is test code for a blog post