An approximation scheme for an eikonal equation with discontinuous coefficient