get rid of the error in ferns.h, add a test souce code to test the rightness of SingleFern and RandomFerns classes