Completed matrix class