sliceable matrix
use ngscxx in Makefile