Project 4: adjust findSmallestValue function and add its flowchart