Merge pull request #9 from zjjott/master

merge and add unittest
fix delete bug:  
1.add reverseIndex for delete completeness.
2.add waterLine for re-add correctness