It might not be patentable, except it is under some jurisdictions https://en.m.wikipedia.org/wiki/Software_patent