formatting
added algorithm citation
added algorithm citation
optimizations, still too slow...