Changed optimization for one function

OptimalAlignment::weightedAlignment crashed with intel c++ -O3.
I was not able to find why (gdb and valgrind did not help).
With this workaround, that function only is optimized at -O2 anyway.