Very experimental thread system for math

Signed-off-by: Chris Sanders <zidane@outlook.com>