Basal Ganglia Dynamics in Structure Learning