Use left shift and iota for simpler constant assignments

Closes #10