Edited @implementation to subclass from NSObject
Changed property to int matrix; pointer of pointer.
Added init function to init from given matrix of set size.