An Algorithmic Approach to Optimal Asset Liquidation Problems