inline void Write2(vector<char>& out, int pos, unsigned short val)
inline void Write2(vector<char>& out, unsigned short val)
inline void Write2(vector<char>& out, int pos, unsigned short val)	{	out[pos] = (char) (val&0xff);	out[pos + 1] = (char) ((val>>8)&0xff);	}