Title: Two Neural Network Algorithms for Designing Optimal Terminal Controllers with Open Final Time