Create Print out diagonal elements of a squared matrix