Nets sign Jason Collins for rest of the season