Multipurpose Photonic Polarization Processor Chip