Changed the storage format to distinct vertices and line endpoint
indexes