Backend: added a class to handle ranges.

This will be essentially useful for ranges manipulation within the context of nodes (graphs).