new version of https://github.com/JonathanHallstrom/binary_search but aiming to be less overengineered
plotting and benchmarking is copied from https://gist.github.com/Rexicon226/b533e0f1ec317b873cff691f54e63364
needs latest, benchmarks were run on 0.14.0-dev.1573+4d81e8ee9