Added polygon compare and deserialization