Adds support for cube implementation.

From https://sites.google.com/site/binarysearchcube/
Latest cube implementation, but not working yet.
Fixes the cube implementation.
Merge branch 'cube'
Adds graphs for tesseract benchmark.
Even more type renaming.

Now it looks better and more consistent.