ASM Specification and Refinement of a Quantum Algorithm