Added comparable method
Fixed bugs
All test cases now pass.
Final Version