__host__ on all integer functions for testing, test library begun