Did the basic operations for the special matrix