Added boost serialization to Math classes