pub fn to_decapodes_serialization(
    input: &MathExpressionTree,
    tables: &mut Tables,
    table_counts: &mut TableCounts
) -> usize