Spike-based learning

still under construction...