Added copyright headers to new code

Really kids, do not cut-n-paste this to your own projects.  I don't envy
anyone having to redevelop this, but it's academic plagiarism to copy
it.  Don't do it.