Define getPartitions and compute in abstract class for MIMA