SAMI: Sydney-AAO Multi-object Integral field spectrograph pipeline