Create modified 3x3matrix