WIP: sum of absolute differences