Rewrite to maintain clocks ordered by ids. Removed lww/1, get_last/1. Changed interface of new/2, get_last_value, set_value.