implement a real hashfunc
Q Table well formed