Added in-place vs new-matrix methods.

Added build macros to speed up coding.