Imported gd_resize.c from other branch.

The program gd_resize.c (now renamed to gd_scale.c) has been imported
from branch 'gd-bicubic-performance'.  This is a simple copy-and-add,
no merging of patches.  The other branch is too big of a mess for that.