A simple matrix class template based on dynamic array.