Added methods to Matrix