ATGP (Automatic Target Generation Procedure) algorithm.
atgp(data, p)
A list which contains:
indices: the indices of the calculated endmembers.
projection_vectors: the projection vectors of the calculated endmembers. Included only when debug level is 1 or higher.
Based on Python implementation in [pysptools](https://github.com/ctherien/pysptools/blob/fbcd3ecaa7ab27f0158b28b4327537c3e75db160/pysptools/eea/eea.py#L52)