exp008: towards 3d error measure: write a function that calculates epsilon in a 3d data set