Add first implementation of data structure builder

This first implementation of the data-structure takes a mapping file and
a set of coordinates with the selected categories to build an object
with sorted elements by their position in the gradient.