Computing the Drift of Random Walks in Dependent Random Environments