add matrix class
slice vtr.cc