Simpler resampling functions for 2 channels

Addition to #82 with optimization for frequent case when there are only 2 channels (most likely), however generic function for arbitrary number of channels still present.