First-Order Optimization Inspired from Finite-Time Convergent Flows