Start reorganisation of math library.