Move matrices creation from methods to constructor