patenting ai algorithms sme