Everything but motion algorithm