Making Matrix class abstract