updated isDyckPath function in CatalanStructures.hs