A fast diffeomorphic image registration algorithm
Numerical Recipes in C, 2nd Edition.