Added array shuffle utility function.