(1/21/14) - added extract indices function to Segmentation header file. Look at Erlebacher's note for next implementations