heap and processSets are added.