fantom2 algorithms implemented