new resample operation

Martin could you please review it? if scale < 0.5 other results occur
than in current implementation (I guess numerical issues)
Added modes to ResampleNodeFactory