Added toBuffer method to EquaSet.