sampleEquallySpaced function

Gets n equally spaced samples (rows) from a matrix or vector