Update indexer.py

Fix for Issue #9 " hierarchical order of selection has to be other way round "
selection of one child imply selection of its parents (bottom up) and checks if parent is already selected.