The Monitor project: rotation periods of low-mass stars in M50