Implements The Sequential Predictions Algorithm