Changed all Number to double types

This might increase speed of the program.