Optimised calculation speed by adding -Ofast compile flag