Added enum Errors together with some errors codes.
Added deleteMatrix().
Added the declaration of function deleteMatrix.