[nnet.legion] Sync. ensemble allocation method has been implemented for the LEGION; Unit-tests are added for the new functional