Particle tracking with a Timepix based triple GEM detector