Added SPOJ's MINMOVE.