Q-learning

2019-03-11: Updated to work with Julia 1.0