Online and Offline Pattern Recognition in PANDA