Move Rectangle print function to a separate file.

Rectangle.h no longer includes iostream. This should speed up
compilation.