Revert "changing Matrix to abstract class, implementing constructors and default methods to it"

This reverts commit e384b7ce9b0622ba0cc2fa174c513f04bb18149e.