more logical flow of control if trellis_quant enabled

if trellis_quant is enabled, increment total number of
passes by optimization beginning pass number.

Signed-off-by: Arjun Sreedharan <arjun024@gmail.com>
Merge pull request #79 from arjun024/devel

more logical flow of control if trellis_quant enabled