fixed the extra space at end of words + return trimmed words
- fixed the infinite loop for test words insertion
- fixed the insertion of collisions in the buckets
- added a "collision dump" helper to analyse the collisions in perl