Modeling of clusters by a molecular dynamics model using a fast tree method