Added some simple non-parallel similarity code
Improved similarity code