added frexp for double and single

For speed.