Updated PolygonSearch algorithm to be cleaner and work better. Finished PolygonSearch code and documentation.