3d line drawing function

Converted 3D Bresenham function from the language we shall not mention