added support for multi-threading in GraphBenchmakrs