added armadillo version of permudist