Numerical solution of the upper-convected maxwell model for three-dimensional free surface flows