Finding the smallest positive value