added method for computing partition function

... and accessing pair probabilities. This should prove useful for writing RNA scoring algorithms based on some form of ensemble defect ones.