Some cool implementations of algorithms in Java