Few useful methods for matrix