Replaced norm executable by primitive arithmetic operations. Added abs operation on matrices and scalars.