Fixes #29

std::numeric_limits<float>::infinity() is used instead of some arbitrary
large number.