Fixed small bugs and added a script to do some basic comparison of algorithms.