memory fixes, Matrix3D, Vector3D usage

first part of memory fixes for frequently used methods in application
runtime. added methods for decomposing Matrix3D, and transforming
vectors in Matrix3DUtils.as class