A java structural similarity (http://en.wikipedia.org/wiki/Structural_similarity) implementation