Add few functions for the matrix