instead of pow(ks,2) --> ks*ks
I hope this resolves the UBSAN errors - finally
version update