Added upsampling and downsampling
Merge pull request #6 from bashia/subsampling

Added upsampling and downsampling