Statistics for Adaptive identification and control of switched linear systems: a memory augmentation approach