Fixing real types that should be real_t
Replacing pow function with shift to get rid of compiler errors