Change SR subsampling code

-Made subsampling algorithm simpler