similarity: feature generation
similarity: switched similarity checks to 2-document arrays only. optimized feature generation. store appropriate documents in the learning_element structure