Changed and optimized word comparison algorithm. Introduced partitioning and multi-threading