Initial solve implementation