Graphs now go by x, y instead of fixed intervals
optimized the array iterator