Smallest.java - Added. Pseudocode