Added basic math functions

Added function in rasaMath.js