Adaptive gridding for finite difference solutions to heat and mass transfer problems