update heap and create diskstra