Create minindc

create an index for a vector from lowest to highest value