corner function

Print the top-left corner of a matrix