changing the directory of variable buffer
new function found on postgres wiki
working function. Now radius is given BY M dimension rahter than explicitly
commented out useless print