Added the entire code of the neurolab package, it might come in handy at some point