Greedy Feed forward Algorithm class file