Deterministic Coin Tossing with Applications to Optimal Parallel List Ranking