further development on the tolerance feature

. func grid_to_line: converts grid coordinates to the line number
. func line_zmirror: computes the lines number of a vertical line
. changed the output of the func circle to a 2D matrix