Hardware implementation of the Neural Gas