dsge method for creating state list
added a vectorized option for perfect shuffle