Partition function calculations for DNA using the Transfer Matrix Method