changed matrix type List<List> and implemeted copy list in getters/setters