refactoring + added Integer matrix constructor and Integer random array