Created Matrix class