Inlined the most-often called Matrix functions

Inlined the most-often called Matrix functions: GetElement, SetElement and [] operator.