Added Delaunay triangulation algorithm which iterates through all text regions to retun text groups.
Further narrowed down types for functions.