Update variogram.m

now uses inputParser to parse input arguments