Implemented the flyweight pattern. Added INumberGenerator interface and NumberGenerator class. The NumberGenerator class is used in MatrixGenerator class. Added INumberGenerator parameter in the MatrixGenerator constructor.