Concise algorithm for conversion between normal and sequency ordered Hadamard matrices