modified:   memory.c
Merge branch 'master' of github:rjames93/MOTIF

I was behind the master branch while working on the memory allocation stuff.
Memory allocation now is correctly freed, will look into renaming the resulting Matrix
into Elements because we are going to be carrying around the matrix inside a structure
containing the width and height of the matrix.