Added unicode reverse string function and fixed defects in Dijkstra algorythm