Library for math operation