Add algorithm sqrt and math operation and random extends