simulation Transfer Matrix Method