Create matseq.cc

Serial implementation