printing now timings to file with same name
got rid of nan problem

before I was taking sqrt of negative numbers.
Due to float imprecision, M2 might drop slightly below 0