functions for working with HDDM (Hier. bayesian Drift-Diffusion Model)