added constructor to Matrix