Sketch out an implementation of Briggs' copy placement algorithm.