Adding some comments.
I created the RangeElements class to avoid two iterations over all the
elements in the array. Now, only one is necessary.
Refactor: Moving the GenericNode to another package.