An Abstract Matrix Class and Derivatives and Deepest Descent