Fix double to uint warning with sq function
Fix double to uint warning with sq function

Better fix. Now using a template function for sq and cb so that any
numeric data type is properly supported.

GOMC-WSU/GOMC,GOMC-WSU/GOMC,GOMC-WSU/GOMC_Serial,GOMC-WSU/GOMC,GOMC-WSU/GOMC_Serial,GOMC-WSU/GOMC,GOMC-WSU/GOMC_Serial,GOMC-WSU/GOMC