Optimum Memory Allocation in Identifying Flow Hogs