MATH: Added is_diagonal function for dynamic matrices