'function to calculate score based on position among indices
This method is used to sort loops in an optimized order, see
CodePrinter._sort_optimized()'

def _rate_index_position(self, p):

    raise NotImplementedError('This    function    must    be    implemented    by    subclass    of    CodePrinter.')
