Fix #9 keep N document on memory before save them in the Index
add a Helper class for generic problems