Fix bug in statsPhase.frag
Handle the case if 2 labels have the same distance from the current
pixel properly

TODO:
Check results (why are there weird fractals)