Laboratory instrument for handling samples