Fixed perspective matrix and lookat matrix functions, still need to double
check but results seem better.