Added benchmarking and fixed bitsize of n.