added array versions of normalize, scale, and map