Make template of operator<< and operator>>