Optimizations

Created classes unit with my Vertex and Edge class, exist functions
divided into two units with verteces functions and edges functions.