Matrix normal forms