cache: test for nan, use std::min and std::max
test for NaN; handle constant HTK features