Implementation in Java for algorithms introduced on http://decomplexify.blogspot.com/