Tropical Geometry of Algebraic Curves