Development and validations of a deformable registration algorithm for medical images: Applications to brain, breast and prostate studies