C code to do dedispersion transforms