New Algorithm to fins factorial in java.