antok: Add sqr to basic calcs

Add sqr template function to basic calcs which also to calculate the
square of a quantitiy.