first step towards binary heap implementation of BCP