quantum circuit for Bernstein-Vazirani algorithm