stratSample function

Sample stratified indices according to a factor variable