changelog: 1.wrong sigmoid func corrected 2.wrong cycles in calculating
distvalue 3.wrong calculation for distvalues(not based on only one word,
should base on all words then choose one) 4.modified sigmoid added(2
trials) 5.currentcycle parameter added