removed dependencies on tuple-utils.hpp, and the file itself
replaced by a single template function and some wrappers
modified main.cpp to use RangeSet for testing purposes