Quantization of massless fields with arbitrary spin