Moved step function to file and fixed algorithm
Comment
Added diffOrder of 0