Added set method in Matrix3d for double array.
Added transpose method to Matrix3d.