To find small number among three different numbers