Added structure factor calculation class