A simple implementation of Lamport logcial clocks