add pop method to heap