Efficient Algorithms for Optimal Designs with Correlated Observations in Pharmacokinetics and Dose‐Finding Studies