#39 Implemented vertex reuse function. Hash function not working yet.