Added vectorised hashtable, specialised for the training process.