Extending choice assessments to choice functions: An algorithm for computing the natural extension