Fixed the multilayer bug, still multiple hidden layers is really slow due to no implemented heuristics or other accelerations