An Algorithm for a Continuous Version of the Assignment Problem