Added additional functions to handle data of type double, double2,
double3, double4