Algorithm for the Closest String Problem