NumPy vs JAX: Optimizing Performance and Functionality