optimized icpc1999dB