Implementation of Real-Time Machine Learning Algorithms for 3D Scintillation Position Estimation in Thick Crystals