Added the RelativeFreqRandomAlgorithm and made some minor changes.