matrices full chapter