1. added a new static TestResult field in TestSorting.java
   and made test suite run halt on test case failure
2. with this new test feature, detected a bug in HeapSort.java
   in which bit-wise left shift does not worked as expected because
   bitwise left shift operator, i.e. <<, has lower precedence
   against plus operator.
   The bug was fixed accordingly.