added helper that calculates indices given some matches...very useful for UIMA annotations