adding common interface for table and nn version of q-learning