Pfit function

Calculates multiscale slope and aspect using a local planar fit.