Reference and Optimized implementations of Rig, A simple, secure and flexible design for Password Hashing