Added a class for bresenham grid traversal