Implementation of Cascade Correlation (Fahlman) in Java