add dynamic and static methods for factorials and binomials
Added some dynamic and static methods for calculating factorials and binomials. There are several different implementation in several modules of varying accessibility and age which can be replaced by this.