add a test of transfer matrix

impliment transfer matrix method for small size to bench mark DMRG.