Implemented computation of camera matrix

+ fixed normalizing zero vector bug