Added min method

Much like the max method, only finding the minimum.