Similar Items: A Graph Model for Imperative Computation