gates of olympus algorithm iusw