Efficient library implementation of broadcast

Tested for stability on Mac and Windows, which seems to be sufficient.

Need to verify performance on Xeon and KNC.