Computational elastic rod model applied to DNA looping