Plot3D algorithm works now with floating point numbers