Using EnumMap instead of HashMap
Change QueryFlag class with integer constants to an enumeration.  Changed MongoQuery to use EnumSet<QueryOption> instead of int.