added index queue datatype and profiling maxflow