performance optimization of the pruning algorithm with fixed-size-cube and visited-vector