pals algorithms 2019