An efficient quantum algorithm for preparation of uniform quantum superposition states