Implemented actual algorithm for line and triangle rasterization.