A Time-Space Tradeoff for Element Distinctness