Edited algorithms.
Added reference to Berkeley Dwarfs.