Added matrix3 and used it for cell vectors