Implement << and >> operators.