Create custom kryo serializer for IntWritable hadoop class