Substitute randperm in SGVector for permute in Math.
Merge pull request #2579 from iglesias/clean_sgvector

Substitute randperm in SGVector for permute in Math.