Added basic resampling functions -- closes #4

  See 'examples/resampling_ex.ml' for details