Fixed implementation of the has..() methods.
Fixed implementation of the has..() methods.

- The previous implementation had the logic reversed (i.e. hasLeft()
  returned true iff the instance's left == null).

alanly/soen331,alanly/soen331,alanly/soen331,alanly/soen331