Added erGrouping function

Find groups of Extremal Regions that are organized as text blocks. Updated sample/cpp to use the complete text detection pipeline.