add core.matrix dependency