The volume algorithm: producing primal solutions with a subgradient method