Function to return maximum element in matrix
Pad matrix with highest element instead of zero