ADPAC: A design and simulation tool for stochastic adaptive controllers