Fixed buggy constructor of Matrix