Igneous rocks classification algorithm (IUGS)