Implementation of Cascade Correlation in Java