Constant reciprocal optimization

Turn a / cst into a * (1. /cst), as found in `growcut.py'