Write a function P1:
A point (x,y) is called a lattice point iff both x and y are integers.
input parameter: integers x1, y1, x2, y2, x3, y3
x1, y1), (x2, y2), (x3, y3) are not on a same straight line.return value: the number of the lattice points (including vertexes) on the perimeter of the triangle with three vertexes (x1, y1), (x2, y2), (x3, y3)