Added general component-wise operations, fixed ostream operator<<