using .n_elem instead of .size() for all arma vectors