Study and Solution of the Five-Vertex Model