Cython implementation of `grad_func`, `ep_neighbor` and `inpaint_point`
Profiling and Testing with the complete image