Simple and Fast Algorithm for Binary Integer and Online Linear Programming