[core] add preliminary Matrix implementation