Implemented remaining partition algorithms.