A fast parametric assignment algorithm with applications in max‐algebra