Added Matrix library constructor and destructor