The Constant-Deviation Variable-Step Algorithm