Simple implementation of Fermant's integer factorization algorithm