Implemented Matrix