Added a straight translation to encog's java implementation of ensembles