Multi-value-register

There are some comments in the code and I hope you can understand how it works.
Opinions about the implementation/naming is appreciated!