Updated binary heap and added JUnit Test cases