Added minor fixes in MemoryAllocation methods.
Added OpenMP support. Added parallel countDistances method. Tested paralle distance calculation. Removed const_casts.
Changed resultFile output.