A Strongly Polynomial Algorithm for Approximate Forster Transforms and Its Application to Halfspace Learning