refactoring
implemented parallel_for_each (slow)
converted ObjectId into a struct