Add SerializedSampleSet class and modify makefile