Profiling

Pre-computed sets of instances which are used, now working on making
Similarity function >> efficient.