Added basic math functions (divergences and distances)