first working version of eps_nbr_slope.m  ... need to play with window size and slope threshold