[ENH] Imporove SUPG coefficient computation

As suggested by Tamas.