Fixed math functions and power support

Also added complex gamma function. And reworked structure definition
(structs are difficult in F#).