A vector clock implementation in scala