Faster Space-Efficient Algorithms for Subset Sum, $k$-Sum, and Related Problems (SIAM journal on computing)