Achieved speed-up of 402x in similaritymatrix calculation on NVIDIA GTX 1080; used coalescing, thread coarsening and shared memory tiling.