This program tells whether a user inputted matrix is a upper, lower, or a diagonal matrix
 This program implements memory memoization for recursive functions