added Serializable interface to Pair class

This in order to serialize an ArrayList of CommonTokens.