basic mvcc

@xiangli-cmu 
do not worry about multithreading for now. we will get there though.