adding doccumentation for some utilities
fix random index function
implemented language distance and crossover