Rewrite _lp_upwards_find for speed (#255)