basic mvcc

@xiangli-cmu 
see line 27