Added support for user defined multilayer configurations in deep believe Networks