Polygon class and Moore contour extraction algorithm.

The default java.awt.polygon only stores points in an int array, but it is possible to get coordinates which are denoted with double values. Therefore I created a simple polygon class.

I also added the Moore contour extraction algorithm to create a polygon from a bitmask.