Added in the bresenham line algorithm and made teh quex a stateless function (to allow multithreaded access)