Probabilistic Algorithms for Modeling Protein Structure and Dynamics