Fixed bug in indexOfMaxCurvature
Added direction of graph of stroke