Adding initial code for heap splitting.