ONTO6 algorithm implemented