Linear algorithms for online multitask classification