poj 1160 quadralateral optimization