Implement constructor, getCostFromStart(), setCostFromStartIfSmaller in Vertex