Added code to shuffle keys. No generics support and not tested.