perf improvement by using table for bits reverse