Update smallestMultiple.java

In need of further optimization (although remains functional)