add sampleM sample classes

samle m element from n , with o(m) space