Implementation initially used in 2009 MSc thesis benchmarks.