added initialization code for binary heap